sample 0.3.0

A crate for simplifying generic pulse code modulation digital signal processing. Use the `Sample` trait to convert between and remain generic over bit-depth.
Documentation

sample Build Status Crates.io Crates.io

A crate for simplifying generic pulse code modulation digital signal processing. Use the Sample trait to convert between and remain generic over bit-depth.

Provides a collection of non-std sample format types including:

  • I11
  • I20
  • I24
  • I48
  • U11
  • U20
  • U24
  • U48

Provides functions for optimally converting between any of the following sample format types:

  • i8
  • I11
  • i16
  • I20
  • I24
  • i32
  • I48
  • i64
  • u8
  • U11
  • u16
  • U20
  • U24
  • u32
  • U48
  • u64
  • f32
  • f64

If sample is missing types, conversions or other functionality that you wish it had, feel free to open an issue or pull request!